import request from "@/utils/request";

/**
 * 保存用户快捷方式菜单
 * @param data
 * @returns {AxiosPromise}
 */
export function shortcutNavigation(data) {
  return request({
    url: "/system/menu/setShortcutNavigation",
    method: "post",
    data: data,
  });
}

/**
 * 获取用户快捷方式菜单
 * @param userId
 * @returns {AxiosPromise}
 */
export function getShortcutNavigation(userId) {
  return request({
    url: "/system/menu/getShortcutNavigation/" + userId,
    method: "get",
  });
}

// 查询首页医生数据
export function getDoctorDataCollect(query) {
    return request({
        url: "/business/clinicMaster/getDoctorDataCollect",
        method: "get",
        params: query,
    });
}


// 护士端首页数据查询
export function getHomePageByNurseInfo (query) {
  return request({
    url: '/business/patVisit/getHomePageByNurseInfo',
    method: 'get',
    params: query
  })
}
